package com.example.light.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@ApiModel(value = "系统公告信息")
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("sys_announcement")
public class announcement {
    @ApiModelProperty("公告id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("系统uuid")
    private String announcementUuid;

    @ApiModelProperty("系统公告类型")
    private String announcementType;

    @ApiModelProperty("系统公告信息")
    private String announcementMessage;

    @ApiModelProperty("阅读状态")
    private Integer announcementIsRead;

    @ApiModelProperty("删除状态")
    private Integer announcementIsDelete;

    @ApiModelProperty("公告获取时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime announcementTime;
}
